//ybzuo
//2010.03
//the base texture's bank
#pragma once
#include "i_UItexture_bank.h"
#include <string>
#include <map>

class base_tex_bank:public i_UItexture_bank
{
	public:
		static base_tex_bank& single();
		 HTEXTURE get_tex(int _id);
		 HTEXTURE get_tex(std::string name);
		 int get_tex_nums();
		 base_tex_bank* get_ptr();
		 
	private:
		base_tex_bank();
		~base_tex_bank();
		std::string m_tex_file;
		std::string m_page_name;
		int m_size;
		std::map<std::string ,int> m_texs;
		std::map<int,HTEXTURE> m_texs_value;
		std::map<int,HTEXTURE>::iterator m_texs_value_it;
		HTEXTURE temphtex;

};